#include "model.h"
#include "../base/debug.h"
#include "../base/logging.h"

Model::Model(WorkerModeInterface* worker) : worker_(NULL)
{
	CORE_LOG(L3, (_T("[Model::Model]")));
	ASSERT1(worker);

	// Initialization of the object must be thread safe.
	__mutexScope(lock_);
	worker_ = worker;
}

Model::~Model()
{
	CORE_LOG(L3, (_T("[Model::~Model]")));
	__mutexScope(lock_);

	worker_ = NULL;
}